package com.lin.gobang;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.lin.PJ.TablePJ;
import com.lin.PP.TablePP;


public class Choose extends Activity{
    private Button ptp;
    private Button pyj;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.choose);
        ptp= (Button) findViewById(R.id.ptpbtn);
        ptp.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent i=new Intent(Choose.this,TablePP.class);
                startActivity(i);
            }
        });
        pyj= (Button) findViewById(R.id.ptjbtn);
        pyj.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent=new Intent(Choose.this,TablePJ.class);
                startActivity(intent);
            }
        });
    }
}
